package cn.xfyun.example.test;

import cn.xfyun.example.util.CreateContext;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

import java.util.Arrays;
import java.util.List;

@SpringBootApplication
@ComponentScan(basePackages = {
        "cn.xfyun.example.util",  // 显式扫描 util 包
        "cn.xfyun.example.test",
        "cn.xfyun.example.config"// 主类所在包
})
public class Context {

    public static void main(String[] args) throws JsonProcessingException {
        ApplicationContext context = SpringApplication.run(Context.class, args);

//        CreateContext createContext = context.getBean(CreateContext.class);
//
//        String interviewId = "123";
//        String fileid = "123";
//
//        String jsonResult = createContext.collectQuestionsAndAnswers(interviewId, fileid);
//        System.out.println(jsonResult);
    }
}
